#include"comm.hpp"
#include<iostream>
int main()
{
    int fd=open(FIFO_FILE,O_WRONLY);
    if(fd<0)
    {
        perror("open");
        exit(OPEN_FILE_ERROR);
    }
    char buffer[SIZE];
    int size=0;
    while(true)
    {
        std::cout<<"Please Enter@ ";
        std::cin.getline(buffer,SIZE);
        size=write(fd,buffer,sizeof(buffer));
        if(size==0)
        {
            break;
            std::cout<<"client quit"<<std::endl;

        }
    }
}